<?php
namespace app\indexLogin\model;

use think\Model;

class Article extends Model{
    protected $pk = 'aid';
    /**
     * 文章添加
     */
    public  function  add($data){
        $res=$this->save($data);
        return   $this->aid;

    }
}